package com.ding.dailyup.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.ding.dailyup.model.UserBuyStrategy;

import java.util.List;
import java.util.Optional;

@Repository
public interface UserBuyStrategyRepositoy
		extends JpaRepository<UserBuyStrategy, Long> {
	Optional<List<UserBuyStrategy>> findAllByUserIdAndStatus(Long userId,
			int status);
}
